package com.example.demo_lihe.dao;

import com.example.demo_lihe.entity.WaterData;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;


public interface WaterDataRepository extends JpaRepository<WaterData, Long> {

    Optional<WaterData> findTopByPointIdOrderByTimeDesc(Long pointId);

}
